export const ADD_TASK = "ADD_TASK";
export const COMPLETE_TASK = "COMPLETE_TASK";
export const ACTIVE_TASK = "ACTIVE_TASK";
export const DEL_TASK = "DEL_TASK";

export function add(task) {
    return {type: ADD_TASK, task};
}

export function complete(task) {
    return {type: COMPLETE_TASK, task};
}

export function active(task) {
    return {type: ACTIVE_TASK, task};
}

export function del(task) {
    return {type: DEL_TASK, task};
}
